package mysql

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Username string `gorm:"type:varchar(30);not null;"`
	Password string `gorm:"type:varchar(30)"`
}

func (u *User) FindUser(username string) error {
	return DB.Debug().Where("username=?", username).Error
}
